package me.zhengjie.modules.customer_app.util;

import me.zhengjie.modules.system.common.EnumWorkorderStatus;

public class ValidateUtils {

    public static final String ACCIDENT_STATUS_UNEDITABLE = "故障单当前不能修改";

    /**
     * 故障状态是否可以修改
     * @param status
     * @return
     */
    public static boolean accidentEditable(Integer status) {
        if(status > EnumWorkorderStatus.DISPATCHED.getValue())
            return false;  //已商家已接单,不能再处理
        else
            return true;
    }
}